import axios from '@/utils/request'
// 用户相关接口

/**
 * 查看医护人员列表
 * @param {*} data
 * @returns
 */
export function medicalList (data) {
  return axios({
    method: 'POST',
    url: '/medical/medicalList',
    data
  })
}
/**
 * 患者查看已关联医护列表
 * @param {*} data
 * @returns
 */
export function associateMedicalList (data) {
  return axios({
    method: 'POST',
    url: '/patients/associateMedicalList',
    data
  })
}
/**
 * 患者申请绑定医护
 * @param {*} data
 * @returns
 */
export function applyBindMedical (data) {
  return axios({
    method: 'POST',
    url: '/patients/applyBindMedical',
    data
  })
}
/**
 * 患者解除关联医护
 * @param {*} data
 * @returns
 */
export function removeAssociate (data) {
  return axios({
    method: 'POST',
    url: '/patients/removeAssociate',
    data
  })
}
/**
 * 患者进行cinv评估
 * @param {*} data
 * @returns
 */
export function assess (data) {
  return axios({
    method: 'POST',
    url: '/patients/assess',
    data
  })
}
/**
 * 首页既往治疗周期
 * @param {*} data
 * @returns
 */
export function treatmentCycle (data) {
  return axios({
    method: 'POST',
    url: '/patients/treatmentCycle',
    data
  })
}
/**
 * 首页既往治疗周期详情
 * @param {*} id
 * @returns
 */
export function cycleDetail (data) {
  return axios({
    method: 'POST',
    url: '/patients/cycleDetail',
    data
  })
}
/**
 * 首页cinv风险评估
 * @param {*}
 * @returns
 */
export function homeCinv (data) {
  return axios({
    method: 'POST',
    url: '/patients/homeCinv',
    data
  })
}
/**
 * 是否展示提示语
 * @param {string} id
 * @returns
 */
export function clues (data) {
  return axios({
    method: 'POST',
    url: '/patients/clues',
    data
  })
}
/**
 * 报告恶心呕吐事件
 * @param {string} vomit 是=1，否=-1
 * @param {string} vomit_number 0=0次，1=1-2次，2=3-5次
 * @param {string} nausea
 * @param {string} nausea_degree
 * @param {string} defecation
 * @param {string} defecation_number
 * @param {string} diarrhea
 * @param {string} diarrhea_number
 * @returns
 */
export function reportNausea (data) {
  return axios({
    method: 'POST',
    url: '/patients/reportNausea',
    data
  })
}
/**
 * 首页既往治疗周期详情
 * @param {*} id
 * @returns
 */
export function patientsCycleDetail (data) {
  return axios({
    method: 'POST',
    url: '/patients/cycleDetail',
    data
  })
}
/**
 * 首页能否开启新周期风险评估
 * @param {*} token
 * @returns
 */
export function startAssess (data) {
  return axios({
    method: 'POST',
    url: '/patients/startAssess',
    data
  })
}
